<?php
namespace app\stores\model;
use app\beautiful\model\mall\GoodsSkuModel;
use app\common\model\CommonModel;
class CityModel extends CommonModel{
    protected  $name = 'system_city';
    protected  $pk   = 'id';
    public function getList($where,$order,$page=0,$limit=0,$field='*'){
        $query = $this->where($where);
        $count = $query->count();
        $query = $query->order($order);
        if($page>0) $query = $query->page($page);
        if($limit>0) $query = $query->limit($limit);
        $list = $query->field($field)
            ->select()
            ->toArray();

        return compact('count','list');
    }
}
